﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Caching;
using System.Collections;

namespace DwProjectTemplate.App
{
	/// <summary>
	/// Cache wrapper class to encapsulate caching
	/// </summary>
	public class CacheFactory
	{
		// In this scenario we use the ASP.NET Cache
		private Cache cache = HttpContext.Current.Cache;

		/// <summary>
		/// Constructor (Empty)
		/// </summary>
		public CacheFactory()
		{
		}
		/// <summary>
		/// Cache property that represents the ASP.NET System.Web.Caching.Cache object in the current Context
		/// </summary>
		public Cache Cache
		{
			get { return ( this.cache ); }
		}

	}
}